package com.yuan.java.dateapi;

import org.junit.Test;

import java.time.LocalDateTime;

/**
 * @author yuaneg 2018/12/4
 */
public class DateTest {

    @Test
    public void a() {
        LocalDateTime currentTime = LocalDateTime.now();
        System.out.println(currentTime);
        System.out.println(currentTime.toLocalDate() + " " + currentTime.toLocalTime());
    }

}
